/**
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */

/* TODO: remove these styles after re-factoring prototype popups to jquery UI */
.dialog .bot {
    display: none !important;
}

.overlay_magento {
    background-color: #000;
    filter: alpha(opacity = 44);
    -moz-opacity: .44;
    -webkit-opacity: .44;
    opacity: .44;
}

.top.table_window td,
.top.table_window td:hover {
    background: #f3efea;
    border: 0;
}

.mid.table_window td,
.mid.table_window td:hover {
    background: #fff;
    border: 0;
}

.magento_nw,
.magento_ne,
.magento_w,
.magento_e,
.magento_sw,
.magento_se {
    display: none;
}

.magento_sizer {
    background: #deebf0;
    width: 5px;
    height: 3px;
}

.magento_sizer {
    cursor: se-resize;
}

.magento_close {
    background: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 18px;
    right: 16px;
    height: 16px;
    width: 16px;
    z-index: 1000;
    text-decoration: none;
}

.magento_close:before {
    color: #676056;
    content: "\e07d";
    font-family: 'MUI-Icons';
    font-style: normal;
    speak: none;
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
}

.magento_title {
    color: #676056;
    font: 20px/1 Arial, Helvetica, sans-serif;
    padding: 20px 0 19px 20px;
}

.magento_content {
    height: auto !important;
    margin: 0 auto;
}

.magento_buttons {
    padding: 10px;
    text-align: right;
}

.popup-window .main-col,
.popup-window .side-col {
    float: left;
}

.popup-window .main-col:after,
.popup-window .side-col:after {
    display: none;
}

.popup-window .main-col {
    padding-right: 0;
}

.magento-message {
    padding: 19px;
    position: relative;
}
.magento-message > .page-actions {
    padding-top: 0;
}

.popup-window .magento-message .fieldset {
    border: 0;
}

.popup-window .magento-message .fieldset select {
    border-radius: 4px;
}

.popup-window .magento-message .fieldset select {
    border-radius: 4px;
}

.popup-window .magento-message .fieldset .addon select {
    display: block;
}

.popup-window .magento-message .fieldset .addon .addafter {
    border: 0;
    color: #666;
    display: block;
}

.popup-window .magento-message .fieldset .nm {
    margin: 4px 0 0;
}

.popup-window .magento-message .fieldset .nm small {
    font-size: 11px;
    font-weight: normal;
}

.popup-window .magento-message .fieldset .widget-option-label {
    padding: 6px 0 0;
}

.popup-window .page-actions {
    padding: 0;
    position: absolute;
    right: 43px;
    top: 30px;
    z-index: 2;
}

.popup-window label.mage-error {
    display: block;
    margin: -29px 0 5px;
}

.popup-window .select + .mage-error {
    margin: 5px 0 0;
}

.popup-window .data .col-id {
    width: 35px;
}

.popup-window .data .col-sku {
    width: 27%;
}

/*
    WYSIWYG insert file
-------------------------------------- */

.insert-title-inner {
    border-bottom: 1px solid #ededed;
    margin: 0 0 18px;
}

.insert-actions,
.insert-actions .action-.delete,
.insert-actions .action-delete {
    float: right;
}

.insert-actions button {
    float: left;
    margin-left: 4px;
}

.insert-title-inner > .title {
    color: #666;
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: normal;
    padding: 7px 0 10px;
}

/*
    Upload images
-------------------------------------- */
.magento-message .main-col-inner .uploader {
    background: #fbfaf6;
    border: 1px solid #cac2b5;
    margin: 0 0 10px;
    padding: 5px;
}

.magento-message .breadcrumbs {
    padding-left: 0;
}

.magento-message .breadcrumbs li:after {
    content: "";
    margin: 0 5px 0 0;
}

.magento-message #contents-uploader {
    margin: 0 0 18px;
}

.magento-message .fileinput-button {
    display: inline-block;
    cursor: pointer;
    float: none;
    vertical-align: middle;
}

.magento-message .fileinput-button span {
    display: none;
}

.magento-message .fileinput-button input {
    position: static;
    border: none;
    opacity: 1;
    filter: alpha(opacity=1);
    -moz-transform: none;
}

.magento-message .file-row {
    background: #fff;
    border: 1px solid #cac2b5;
    margin: 5px 0;
    padding: 2px;
}

.magento-message .filecnt {
    border: 1px solid #cac2b5;
    display: inline-block;
    margin: 0 4px 15px 0;
    padding: 3px;
    width: 100px;
    overflow: hidden;
}

.magento-message .filecnt.selected {
    border-color: #19a3d1;
}

.magento-message .filecnt p {
    text-align: center;
}

.magento-message #contents-uploader:after,
.magento-message #contents-uploader:before {
    content: "";
    display: table;
}

.magento-message #contents-uploader:after {
    clear: both;
}

.magento-message .x-tree {
    margin-bottom: 20px;
}

/*
    Block 'Insert variable'
-------------------------------------- */
.insert-variable {
    list-style: none;
    margin: 0;
    padding: 0 0 25px;
}

.insert-variable li {
    padding-left: 20px;
}

.insert-variable li b {
    margin-left: -20px;
    margin-top: 5px;
    display: inline-block;
}

/*
    Jquery UI
-------------------------------------- */
.ui-dialog {
    background: #fff;
    -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, .4);
    box-shadow: 0 3px 6px rgba(0, 0, 0, .4);
}

.dialog.ui-dialog {
    border: 1px solid #555;
    display: none;
    padding: 0;
}

.ui-widget-overlay {
    background: #000;
    filter: alpha(opacity = 60);
    -moz-opacity: .44;
    -webkit-opacity: .44;
    opacity: .44;
    position: absolute;
    left: 0;
    top: 0;
}

.ui-dialog .ui-dialog-titlebar {
    background: #f3efea;
    height: 58px;
}

.ui-dialog .ui-dialog-title {
    color: #676056;
    font-size: 20px;
    line-height: 1;
    display: block;
    padding: 19px 0 19px 20px;
    cursor: move;
}

.ui-dialog .ui-icon {
    text-indent: -99999px;
}

.ui-dialog .ui-dialog-titlebar-close {
    background: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 22px;
    right: 16px;
    height: 16px;
    width: 16px;
    z-index: 1000;
    text-decoration: none;
}

.ui-dialog .ui-dialog-titlebar-close:before {
    color: #676056;
    content: "\e07d";
    font-family: 'MUI-Icons';
    font-style: normal;
    speak: none;
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
}

.ui-dialog .ui-dialog-titlebar-close .ui-icon {
    display: none;
}

.ui-dialog .ui-dialog-titlebar-close.ui-state-hover {
    border: none;
}

.ui-dialog .ui-dialog-content .fieldset {
    border-radius: 0;
    border: none;
}

.ui-dialog .ui-dialog-content {
    overflow: auto;
    padding: 25px 25px 20px;
}

.ui-dialog .ui-dialog-content label.mage-error {
    margin: 0;
}

.ui-dialog .ui-dialog-content form {
    display: block;
    overflow: hidden;
}

.ui-dialog .ui-dialog-buttonpane {
    margin: 0;
    padding: 0 25px 25px;
    border: none;
}

.ui-dialog .ui-dialog-buttonset button {
    margin-right: 10px;
}

.ui-resizable {
    position: relative;
}

.ui-resizable-handle {
    position: absolute;
    font-size: 0.1px;
    display: block;
}

.ui-resizable-disabled .ui-resizable-handle,
.ui-resizable-autohide .ui-resizable-handle {
    display: none;
}

.ui-resizable-n {
    cursor: n-resize;
    height: 7px;
    width: 100%;
    top: -5px;
    left: 0;
}

.ui-resizable-s {
    cursor: s-resize;
    height: 7px;
    width: 100%;
    bottom: 0;
    left: 0;
}

.ui-resizable-e {
    cursor: e-resize;
    width: 7px;
    right: 0;
    top: 0;
    height: 100%;
}

.ui-resizable-w {
    cursor: w-resize;
    width: 7px;
    left: -7px;
    top: 0;
    height: 100%;
}

.ui-resizable-se {
    cursor: se-resize;
    width: 12px;
    height: 12px;
    right: 1px;
    bottom: 1px;
}

.ui-resizable-sw {
    cursor: sw-resize;
    width: 9px;
    height: 9px;
    left: -5px;
    bottom: 0;
}

.ui-resizable-nw {
    cursor: nw-resize;
    width: 9px;
    height: 9px;
    left: -5px;
    top: -5px;
}

.ui-resizable-ne {
    cursor: ne-resize;
    width: 9px;
    height: 9px;
    right: 0;
    top: -5px;
}

.ui-dialog ul.form-list,
.ui-dialog ul.options-list {
    list-style: none;
    padding: 0;
}

/*
    Clearfix
-------------------------------------- */

.insert-title-inner:before,
.insert-title-inner:after {
    content: "";
    display: table;
}

.insert-title-inner:after {
    clear: both;
}
